package com.brillilab.service.core.instrument;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.brillilab.domain.po.instrument.Instrument;

import java.util.List;

/**
 * <p>
 * 仪器 服务类
 * </p>
 *
 * @author WuMenghao
 * @since 2019-06-12
 */
public interface IInstrumentService {

    List<Long> selectDuties(Long labId);

    IPage<Instrument> selectPage(Page<Instrument> page,LambdaQueryWrapper<Instrument> wrapper);

    int selectCount(LambdaQueryWrapper<Instrument> wrapper);

    Instrument selectOne(Long labId,Integer no);

    int insert(Instrument instrument);

    Instrument selectById(Long instrumentId);

    int updateById(Instrument instrument);

    List<Instrument> selectList(LambdaQueryWrapper<Instrument> wrapper);

    Integer[] getUsedInstrumentNo(Long labId);

    List<Instrument> selectList(Long labId,Integer isDelete);

    List<Instrument> selectList(List<Long> instrumentIds);
}
